import {defineConfig} from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
    title: "宁德数智科技有限公司",
    description: "自动化",
    outDir: '../Service/bin/Debug/docs',
    themeConfig: {
        logoLink:'index.html',
        // https://vitepress.dev/reference/default-theme-config
        nav: [
            {text: 'Home', link: '/index.html'},
            {text: 'Overview', link: '/api-examples'},
        ],

        sidebar: [
            {
                text: '概述',
                items: [
                    {
                        text: '界面配置文档', link: '/markdown-examples2',
                        items: [
                            {text: '创建项目', link: '/markdown-examples2'},
                            {text: '事件', link: '/markdown-event'},
                            {text: '函数', link: '/markdown-function'},
                            {text: 'API', link: '/markdown-api'},
                            {text: 'UI组件', link: '/markdown-components'},
                            {text: '权限', link: '/markdown-permissions'},
                            {text: '图表', link: '/markdown-permissions'},
                        ]
                    },
                    {
                        text: '流程开发文档', link: '/flow-examples',
                        items: [
                            {text: '脚本', link: '/script-flow-examples'},
                            {text: '全局变量', link: '/script-flow-examples'},
                            {text: '设备管理', link: '/script-flow-examples'},
                            {text: '事件管理', link: '/script-flow-examples'},
                            {text: 'PLC读写', link: '/script-flow-examples'},
                            {text: 'MES配置', link: '/script-flow-examples'},
                            {text: '数据库', link: '/script-flow-examples'},
                            {text: '条件分支', link: '/script-flow-examples'},
                            {text: '计算变量', link: '/script-flow-examples'},
                            {text: '触发流程', link: '/script-flow-examples'},
                            {text: '停止流程', link: '/script-flow-examples'},
                            {text: 'TCP通讯', link: '/script-flow-examples'},
                            {text: 'FILE读', link: '/script-flow-examples'},
                            {text: 'FILE写', link: '/script-flow-examples'},
                            {text: 'FILE拷贝', link: '/script-flow-examples'},
                        ]
                    }
                ]
            }
        ],

        socialLinks: [
            {icon: 'github', link: 'https://github.com/vuejs/vitepress'}
        ]
    }
})
